import Base from '../../static/js/base'
class EditNickName extends Base{
	constructor() {
		super();
	}
	// 我的信息
	my(callBack) {
		var that = this;
		var params = {
		  url: 'login/my',
		  method:'POST',
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
	// 修改昵称
	edit_nick_name(nick_name,callBack) {
		var that = this;
		var params = {
		  url: 'my/edit_nick_name',
		  method:'PUT',
		  data:{
			nick_name:nick_name  
		  },
		  sCallBack: function (res) {
			callBack && callBack(res.data);
		  }
		};
		that.request(params);
	};
}

export default EditNickName	